/**
 * 
 */
package it.polimi.traveldream.daos;

import java.util.List;

import it.polimi.traveldream.dtos.DefaultPackageDTO;
import it.polimi.traveldream.exception.ConsistencyException;
import it.polimi.traveldream.exception.NoIdException;


public interface PackageManager  {
	
	/*
	 * Generic Products Methods
	 */
	
	public void addDefaultPackage(DefaultPackageDTO defaultPackageDTO) throws ConsistencyException;
	
	public void updateDefaultPackage(DefaultPackageDTO defaultPackageDTO) throws ConsistencyException, NoIdException;
	
	public void removeDefaultPackage(DefaultPackageDTO defaultPackageDTO) throws NoIdException;
	
	public void removeDefaultPackagebyId(int id);
	
	
	/*
	 * Generic Product Query Methods
	 */
	
	public List<DefaultPackageDTO> getAll();
	
	public List<DefaultPackageDTO> findByName(String name);
	
	public DefaultPackageDTO findById(int defaultPackageId);
	
	


}
